package com.bwie.system.controller;

import com.bwie.common.domain.User;
import com.bwie.common.domain.UserGift;
import com.bwie.common.result.Result;
import com.bwie.system.service.UserGiftService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @className: UserGiftController
 * @Description: TODO
 * @version: v1.８.0
 * @author:
 * @date:
 */
@RestController
public class UserGiftController {
    @Autowired
    private UserGiftService userGiftService;

    @PostMapping("/addUserGift")
    public Result addUserGift(@RequestBody List<UserGift> userGifts){
        userGiftService.addUserGift(userGifts);
        return Result.success();

    }
}
